package com.ruoyi.house.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.house.domain.TbHouseProperties;
import com.ruoyi.house.mapper.TbHousePropertiesMapper;
import com.ruoyi.house.service.ITbHousePropertiesService;

/**
 * 属性管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-14
 */
@Service
public class TbHousePropertiesServiceImpl implements ITbHousePropertiesService 
{
    @Autowired
    private TbHousePropertiesMapper tbHousePropertiesMapper;

    /**
     * 查询属性管理列表
     * 
     * @param tbHouseProperties 属性管理
     * @return 属性管理
     */
    @Override
    public List<TbHouseProperties> selectTbHousePropertiesList(TbHouseProperties tbHouseProperties)
    {
        return tbHousePropertiesMapper.selectTbHousePropertiesList(tbHouseProperties);
    }

    /**
     * 查询属性管理列表（包含房屋信息）
     * 
     * @param tbHouseProperties 属性管理
     * @return 属性管理集合
     */
    @Override
    public List<TbHouseProperties> selectTbHousePropertiesListWithHouseInfo(TbHouseProperties tbHouseProperties)
    {
        return tbHousePropertiesMapper.selectTbHousePropertiesListWithHouseInfo(tbHouseProperties);
    }

    /**
     * 新增属性管理
     * 
     * @param tbHouseProperties 属性管理
     * @return 结果
     */
    @Override
    public int insertTbHouseProperties(TbHouseProperties tbHouseProperties)
    {
        return tbHousePropertiesMapper.insertTbHouseProperties(tbHouseProperties);
    }

    /**
     * 修改属性管理
     * 
     * @param tbHouseProperties 属性管理
     * @return 结果
     */
    @Override
    public int updateTbHouseProperties(TbHouseProperties tbHouseProperties)
    {
        return tbHousePropertiesMapper.updateTbHouseProperties(tbHouseProperties);
    }

    /**
     * 批量删除属性管理
     * 
     * @param houseIds 需要删除的属性管理主键
     * @return 结果
     */
    @Override
    public int deleteTbHousePropertiesByHouseIds(Long[] houseIds)
    {
        return tbHousePropertiesMapper.deleteTbHousePropertiesByHouseIds(houseIds);
    }

    /**
     * 删除属性管理信息
     * 
     * @param houseId 属性管理主键
     * @return 结果
     */
    @Override
    public int deleteTbHousePropertiesByHouseId(Long houseId)
    {
        return tbHousePropertiesMapper.deleteTbHousePropertiesByHouseId(houseId);
    }

    /**
     * 查询属性管理
     * 
     * @param houseId 属性管理主键
     * @return 属性管理
     */
    @Override
    public TbHouseProperties selectTbHousePropertiesByHouseId(Long houseId)
    {
        return tbHousePropertiesMapper.selectTbHousePropertiesByHouseId(houseId);
    }
}
